package com.laowang.project.system.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.laowang.project.system.mapper.MyCyhUserShareMapper;
import com.laowang.project.system.domain.MyCyhUserShare;
import com.laowang.project.system.service.MyCyhUserShareService;

/**
 * 用户分享关联Service业务层处理
 *
 * @author laowang
 * @date 2024-04-16
 */
@Service
public class MyCyhUserShareServiceImpl implements MyCyhUserShareService {
    @Autowired
    private MyCyhUserShareMapper myCyhUserShareMapper;

    /**
     * 查询用户分享关联
     *
     * @param id 用户分享关联ID
     * @return 用户分享关联
     */
    @Override
    public MyCyhUserShare selectMyCyhUserShareById(Integer id) {
        return myCyhUserShareMapper.selectMyCyhUserShareById(id);
    }

    /**
     * 查询用户分享关联列表
     *
     * @param myCyhUserShare 用户分享关联
     * @return 用户分享关联
     */
    @Override
    public List<MyCyhUserShare> selectMyCyhUserShareList(MyCyhUserShare myCyhUserShare) {
        return myCyhUserShareMapper.selectMyCyhUserShareList(myCyhUserShare);
    }

    /**
     * 新增用户分享关联
     *
     * @param myCyhUserShare 用户分享关联
     * @return 结果
     */
    @Override
    public int insertMyCyhUserShare(MyCyhUserShare myCyhUserShare) {
        return myCyhUserShareMapper.insertMyCyhUserShare(myCyhUserShare);
    }

    /**
     * 修改用户分享关联
     *
     * @param myCyhUserShare 用户分享关联
     * @return 结果
     */
    @Override
    public int updateMyCyhUserShare(MyCyhUserShare myCyhUserShare) {
        return myCyhUserShareMapper.updateMyCyhUserShare(myCyhUserShare);
    }

    /**
     * 批量删除用户分享关联
     *
     * @param ids 需要删除的用户分享关联ID
     * @return 结果
     */
    @Override
    public int deleteMyCyhUserShareByIds(Integer[] ids) {
        return myCyhUserShareMapper.deleteMyCyhUserShareByIds(ids);
    }

    /**
     * 删除用户分享关联信息
     *
     * @param id 用户分享关联ID
     * @return 结果
     */
    @Override
    public int deleteMyCyhUserShareById(Integer id) {
        return myCyhUserShareMapper.deleteMyCyhUserShareById(id);
    }
}
